package com.baiytfp.hf.HFDataExchange.action.service;

import com.baiytfp.hf.HFDataExchange.action.dao.InterfaceDAOImpl;
import com.baiytfp.hf.HFDataExchange.common.model.base.HFSysParams;
import com.baiytfp.hf.HFDataExchange.common.model.base.TableName;
import com.baiytfp.hf.baiytfp.common.db.HFPager;
import com.baiytfp.hf.baiytfp.framework.base.BaseService;
import com.baiytfp.hf.baiytfp.hfutils.HFDBHelper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @program: HFDataExchange
 * @description: 接口信息service
 * @author: zhenKang
 * @create: 2018-12-07 11:56
 */
@Service
public class InterfaceService extends BaseService {

    @Resource
    private InterfaceDAOImpl interfaceDAO;
    /**
     * 接口信息列表 (interface_type 类型(1:主动接口  0:被动接口 ))
     * @param hfPager
     * @return
     * @throws Exception
     */
    public List<Map> listInterface(HFPager hfPager) throws Exception {
        List<Map> maps = interfaceDAO.listInterface(hfPager);
        return maps;
    }
}
